<?php
/* Connect to an ODBC database using driver invocation */
$dsn = 'mysql:host=127.0.0.1;dbname=lamp';
$user = 'root';
$password = 'Root1024$';

try {
    $dbh = new PDO($dsn, $user, $password);
} catch (PDOException $e) {
    echo 'Connection failed: ' . $e->getMessage();
    exit();
}

$stm= $dbh->query("SELECT * FROM lamp_user LIMIT 1");

$rows = $stm->fetchAll();

var_dump($rows);
